package cn.openbiotoken.android.facetoken;

import android.content.Context;
import android.graphics.Bitmap;

import androidx.annotation.NonNull;

import com.nnf.nnfkitlib.NNF_FaceInfo;

import cn.openbiotoken.BiometricsDetector;
import cn.openbiotoken.BiometricsFeatureExtractor;
import cn.openbiotoken.android.BitmapBiometricsFactory;

public class HomoSapiensEyeprintBitmapBiometricsFactory extends BitmapBiometricsFactory<NNF_FaceInfo, float[]> {

    public HomoSapiensEyeprintBitmapBiometricsFactory(@NonNull final Context context) {
        super(context);
    }

    @NonNull
    @Override
    public BiometricsDetector<NNF_FaceInfo> createDetector(@NonNull Bitmap source) {
        return new HomoSapiensBitmapEyeprintDetector(context, source);
    }

    @Override
    @NonNull
    public BiometricsFeatureExtractor<float[]> createFeatureExtractor(@NonNull final Bitmap source) {
        return new HomoSapiensBitmapEyeprintFeatureExtractor(context, source);
    }
}
